<template>
  <div>
    <!-- 盘点 -->
    <el-dialog
      width="600px"
      destroy-on-close
      append-to-body
      :visible.sync="show"
      :before-close="cancel"
    >
      <!-- 增删改查 -->
      <el-row style="margin: 15px 0" :gutter="10">
        <!-- v-hasPermi="['distribution:purchase:createPurchaseOrder']" -->
        <el-col :span="12">
          <div>库位号：XXX</div>
          <el-input />
        </el-col>
        <el-col
          :span="10"
          style="display: flex; flex-direction: column; align-items: flex-end"
        >
          <div>快照数量：50</div>
          <div>当前确认数量：40</div>
        </el-col>
      </el-row>

      <div slot="footer" class="dialog-footer">
        <el-button @click="cancel">
          <!-- 关闭 -->
          {{ $t("关闭") }}
        </el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  activated() {
    this.$nextTick(() => this.$refs['TableRef']?.doLayout())
  },
  props: {
    /**
     * 控制显示隐藏
     */
    show: {
      type: Boolean,
      required: true,
      default: false,
    },
  },
  data() {
    return {
      queryParams: {
        pageNum: 0,
        pageSize: 10,
      },
    };
  },
  watch: {
    show: function (newValue) {
      if (newValue) {
        this.getList();
      }
    },
  },
  methods: {
    getList() {},
    cancel() {
      this.$emit("update:show", false);
    },
  },
};
</script>
<style scoped lang="scss"></style>
